home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / fx / grenexp_base.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  3.0 KB  |  179 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 1.0
  5.     path models/fx/dummy
  6.     skelmodel dummy2.skd
  7. }
  8.  
  9. init
  10. {
  11.     client
  12.     {
  13.         cache gren_boom.spr
  14.         cache vsssource.spr
  15.  
  16.         sfx sound grenade_explode
  17.  
  18.         // big, sudden flash of light
  19.         delayedsfx 0.1 blockdlight 300 0.25
  20.         (
  21.             color 0.7 0.7 0.7
  22.             colorvelocity -2.2 -2.2 -2.2
  23.             scalerate -1.0
  24.         )
  25.         
  26.         // smaller, decaying light
  27.         sfx blockdlight 250 0.65
  28.         (
  29.             //color 0.5 0.4 0.3
  30.             color 0.89 0.9 0.8039
  31.             colorvelocity -0.5 -0.5 -0.5
  32.             scalerate -0.6
  33.         )
  34.         
  35.         // sparks
  36. //        delayedsfx 0.1 originspawn
  37. //        (
  38. //            alpha 0.5
  39. //            offset crandom 10 crandom 10 crandom 10
  40. //            count 30
  41. //            model models/fx/bh_metal_fastpiece.tik
  42. //            align
  43. //            randvel crandom 700 crandom 700 crandom 700
  44. //            accel 0 0 -3000
  45. //            life 0.15 0.1
  46. //            scalemin 2.0
  47. //            scalemax 4.0
  48. //            scalerate -0.6
  49. //            fade
  50. //        )
  51.  
  52.         // animated explosion
  53.         sfx originspawn
  54.         (
  55.             model gren_boom.spr
  56.             randvel 0 0 20
  57.             alpha 1.0
  58.             life 0.35
  59.             scale .5
  60. //            offset 0 0 16
  61. //            scalerate 0.8
  62.             fadedelay 0.5
  63.         )
  64.  
  65.         // bright flash
  66. //        sfx originspawn
  67. //        (
  68. //            model grenexp_flash.spr
  69. //            color 1 .9 .7
  70. //            scalerate 9
  71. //            life 0.1
  72. //            fade
  73. //        )
  74.  
  75.         // spherical smoke
  76. //        sfx originspawn
  77. //        (
  78. //            volumetric
  79. //            model grenade
  80. //            collision
  81. //            sphere
  82. //            radius 30
  83. //            velocity 24
  84. //            randvel 0 0 12
  85. //            life 100
  86. //            scale 12
  87. //            alpha 0.8
  88. //            color 0.65 0.6 0.55 // RBG color of the smoke
  89. //        )
  90. //
  91. //        // spherical smoke
  92. //        delayedsfx 0.1 originspawn
  93. //        (
  94. //            volumetric
  95. //            model grenade
  96. //            collision
  97. //            sphere
  98. //            radius 24
  99. //            velocity 16
  100. //            randvel 0 0 10
  101. //            life 40
  102. //            scale 12
  103. //            alpha 0.8
  104. //            color 0.65 0.6 0.55 // RBG color of the smoke
  105. //        )
  106. //
  107. //        // spherical smoke
  108. //        delayedsfx 0.2 originspawn
  109. //        (
  110. //            volumetric
  111. //            model grenade
  112. //            collision
  113. //            sphere
  114. //            radius 16
  115. //            velocity 8
  116. //            randvel 0 0 8
  117. //            life 40
  118. //            scale 12
  119. //            alpha 0.8
  120. //            color 0.65 0.6 0.55 // RBG color of the smoke
  121. //        )
  122. //
  123. //        // long lingering smoke
  124. //        delayedsfx 0.5 originspawn
  125. //        (
  126. //            volumetric
  127. //            model mist
  128. ////            accel 36
  129. //            collision
  130. //            velocity 0
  131. //            randvel 0 0 24
  132. //            life 20
  133. //            scale 12
  134. //            alpha 0.75
  135. //            color 0.6 0.55 0.5 // RBG color of the smoke
  136. //        )
  137. //
  138. //        // long lingering smoke
  139. //        delayedsfx 0.6 originspawn
  140. //        (
  141. //            volumetric
  142. //            model mist
  143. ////            accel 36
  144. //            collision
  145. //            velocity 0
  146. //            randvel 0 0 24
  147. //            life 20
  148. //            scale 12
  149. //            alpha 0.75
  150. //            color 0.6 0.55 0.5 // RBG color of the smoke
  151. //        )
  152.  
  153.         sfx originspawn
  154.         (
  155.             model vsssource.spr
  156.             count 32
  157.             radius 32
  158.             radialvelocity 0 64 96
  159.             friction 0.6
  160.             color .2 .2 .2
  161.             spritegridlighting
  162.             alpha 0.7
  163.             fadein 1.5
  164.             fadedelay 1.5
  165.             scalemin 2
  166.             scalemax 3
  167.             scalerate .25
  168.             life 2.5 1
  169.             collision
  170.         )
  171.     }
  172. }
  173.  
  174. // This section is just needed to be a valid tiki file
  175. animations
  176. {
  177.     idle dummy2.skc 
  178. }
  179.